import request from "@/utils/request";

export function getSamplingByPage(query) {
  return request({
    url: `/system/sampling/getSamplingByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addSampling(query) {
  return request({
    url: `/system/sampling/addSampling`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delSampling(query) {
  return request({
    url: `/system/sampling/delSampling`,
    method: "post",
    data: query,
  });
}

export function updateSampling(query) {
  return request({
    url: `/system/sampling/updateSampling`,
    method: "post",
    data: query,
  });
}
